https://e2e.ti.com/blogs_/b/analogwire/archive/2016/08/15/how-can-an-inductive-switch-be-used-for-lid-open-close-detection Inductive sensing: How can an inductive switch be used for lid open/close detection? A customer recently asked me to optimize a lid open/close detection mechanism for a consumer product. To avoid relying on potentially unreliable electrical contacts, magnets or expensive optical solutions, I suggested the LDC0851 differential inductive switch. Today I want to show you how to use an inductive switch for this purpose and how a threshold adjustment feature can help set the switching distance. How can an inductive switch be used for lid open/close detection? Typical inductive proximity-sensing applications use a small metal target such as a piece of copper foil or even a screw to detect the position of a moving part such as the lid or a door of a consumer product, as shown in Figure 1. Figure 1: Lid open/close detection application To determine if metal is present, the switch compares the inductance of a sense coil to the reference coil. The outer coil diameter determines the maximum switching threshold. I suggested a stacked coil approach, in which printed circuit board (PCB) layers 1 and 2 contain the sense coil and layers 3 and 4 contain the reference coil. Figure 2 shows a system block diagram. Figure 2: System block diagram When should I use threshold adjust mode? In proximity applications, it is important to determine if the LDC0851 should operate in basic operation mode or threshold adjustment mode: •In basic operation mode (ADJ = 0), the LDC0851 uses a reference target positioned at a fixed distance from the reference coil and a moving target over the sensor coil. Unfortunately, the reference target is not easy to add in this system. •You must use threshold adjust mode (1 = ADJ = 15) if there is no fixed target present near the reference coil. In this mode, the reference coil inductance has an offset subtracted to alter the switching threshold. Operating in threshold adjust mode ensures that the sense coil inductance is greater than the reference coil inductance at an infinite target distance, and therefore that the release point is well defined. This is the case in both stacked coil applications and side-by-side coil applications. Within threshold adjust mode, ADJ = 1 produces the largest sensing range and ADJ = 15 the smallest, as shown in Figure 3. Note that the switching distance is also a function of the outer coil diameter. Figure 3: Different ADJ codes affect the switching threshold Configuring the LDC0851 for threshold adjust mode requires setting a resistor divider on the ADJ pin. The ADJ pin has 16 levels (level 0 disables the threshold adjust feature, and is equivalent to basic operation mode). The LDC0851 data sheet contains the recommended resistor values for each level. Figure 4 shows how the lid height and ADJ code affect the adjusted coil inductance. Figure 4: Lid height vs. coil inductance and ADJ code With the LDC0851, I was able to help the customer with a simple and reliable solution. Not all inductive proximity-switch applications have a metal target near the reference coil to set the switching point, however. In applications without a reference target, the threshold adjust mode ensures that switching occurs at the desired target distance. What’s your experience designing with inductive switches? Login and leave a comment below. Additional resources •View the LDC0851 data sheet. •Download the LDC tools spreadsheet, which includes a dedicated tab to configure an LDC0851. •Read other blogs about inductive sensing. Sign in to Comment TI E2E™ Community Support Forums Blogs Videos Groups Site Support & Feedback Settings TI E2E™ Community Groups TI University Program Make the Switch Microcontroller Projects Motor Drive & Control Other Communities Deyisupport Designsomething.org beagleboard.org TI on Element 14 TI on TechXchangeSM Other Technical & Support Resources WEBENCH® Design Center Product Information Centers Technical Documents TI Design Network TI Technical Articles TI Training All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI. Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice. Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+ TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version) TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and embedded processors, along with software, tools and the industry’s largest sales/support staff. © Copyright 1995-2016 Texas Instruments Incorporated. All rights reserved.